<?php
require_once ("./includes/func.php");
/*
 * Created on 2011-11-12
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

if (!$_GET['id']) {
	echo "出错了 ！";
} else {
	$id = $_GET['id'];
	if(!is_numeric($id)){
		die ("出错了");
	}
	require_once ("./includes/configure.php");
	require_once ("./includes/database.php");
	$db = Database :: Connect();
	$sql = "select * from zufang where id=$id";
	$row = $db->GetSingleRow($sql) or die ("出错啦!");
    $db->Execute("update zufang set guanzhucishu=guanzhucishu+1 where id=$id");
	$biaoti =  $row->biaoti;

	$jiaoyifangshi = $row->fangshi;


	$huxing = $row->huxing;
	$huxing = explode('|',$huxing);
	$huxing_shi = $huxing[0].'室';
	$huxing_ting = $huxing[1].'厅';
	$huxing_wei = $huxing[2].'卫';
	$huxing = $huxing_shi.$huxing_ting.$huxing_wei;


	$type = $row->type;

	$quyu = $row->quyu;

    $faburen = $row->faburen;
	$chuzufangshi = $row->zulin;
	$dianhua = $row->dianhua;
	$chaoxiang = $row->chaoxiang;
	$zhuangxiu = $row->zhuangxiu;
	$jieshao = $row->jieshao;
	$jieshao2 = $row->jieshao2;
	$fangling = $row->fangling;

	$louceng = $row->louceng;
	$mianji = $row->mianji;
	$leixing = $row->leixing;
	$leixingrow = $db->GetSingleRow("select C from configuration where this_id = (select leixing from zufang where id=$id)");
	$leixing = $leixingrow->C;
    $jiage =  $row->jiage;
    $xiaoqudizhi = $row->dizhi;

	$hidephone = $row->hidephone;
	$sms_config = $db->GetSingleRow("SELECT * FROM configuration WHERE `key`='sms-switch'");
	$sms_state = $sms_config->value;//1运行中,0关闭
	if($sms_state){//关闭了的话,就不用隐藏号码
		if($hidephone==1) {
			$dianhua =  hidePhoneNum($dianhua);
		}
	}

    $tupian = $row->tupian;

	$time = $row->time;

    $tupian = explode(";",$tupian);

	$xiaoquid = $row->xiaoqu;

	$sql2 = "select * from xiaoqu where this_id=$xiaoquid";
	$row2 = $db->GetSingleRow($sql2)  or die ("出错啦!");;

    $xiaoquming = $row2->xiaoquming;



	$db->Close();

	//记住客户最近一次浏览的房屋
	if($type == 1){
		setcookie('interest',$quyu.'-'.$huxing_shi.'-'.$zhuangxiu.'-'.$jiage);
	}
?>


<!--
	说明,详细介绍:http://www.okajax.com/demo/dialog/
	//透明度,自己可以调,在文件dialog.js里面
-->
<script type="text/javascript" src="js/dialog.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<style type="text/css">
	#floatBoxBg{display:none;width:100%;height:100%;background:#000;position:absolute;top:0;left:0;}
	.floatBox{border:#666 5px solid;width:300px;position:absolute;top:180px;left:40%; overflow: hidden;}
	.floatBox .title{height:23px;padding:7px 10px 0;background:#333;color:#fff;}
	.floatBox .title h4{float:left;padding:0;margin:0;font-size:14px;line-height:16px;}
	.floatBox .title span{float:right;cursor:pointer;}
	.floatBox .content{padding:20px 15px;background:#fff;}
	.sendSMS,.applyPhone{margin-right: 15px;margin-top: 5px;background-color: <?php if($sms_state){echo '#FB8200';}else{echo 'gray';}?>; border-radius:4px; color: PapayaWhip; float: right;  padding: 6px; cursor: pointer;}
</style>
<script type="text/javascript">
$(function(){
		$(".sendSMS").click(function(){
<?php
	if($sms_state){
		$c_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
		$d_url = substr($c_url,0,strrpos($c_url,"/"))."/";
?>
		dialog("请输入您的手机号","iframe:sendSMS.php?fangwu_id=<?=$id?>","400px","200","iframe");
<?php
	}else{
		echo "alert('该功能尚未开启');";
	}
?>
		});

		$(".applyPhone").click(function(){
			alert("功能未确定");
		});

});
</script>
<div id="content">
  <div class="propBaseInfo">
    <div id="wrapper-propview">
      <div id="content-propview">
        <div class="propInfoBigBox">
          <h1 class="propInfoTitle"> <?php echo $biaoti ?> </h1>
          <div class="propimg_switch">
            <p class="current_img" id="current_img_apf_id_1"> <a href="#roompic"><img width="320" height="240" alt="<?php echo $xiaoquming?>"  src="<?php echo './'.$tupian[0]?>" onerror="this.src='./images/avatar.gif'"></a> </p>
            <ul id="switch_img_apf_id_1" class="switch_img">
              <li class="selected"><a href="###"><img width="67" height="50" title="<?php echo $xiaoquming?> " ref="<?php echo './'.$tupian[0]?>" alt="<?php echo $xiaoquming?>" src="<?php echo './'.$tupian[0]?>" onerror="this.src='./images/avatar.gif'"></a></li>
              <li><a href="###"><img width="67" height="50" title="<?php echo $xiaoquming?> " ref="<?php echo './'.$tupian[1]?>" alt="<?php echo $xiaoquming?> " src="<?php echo './'.$tupian[1]?>" onerror="this.src='./images/avatar.gif'"></a></li>
              <li><a href="###"><img width="67" height="50" title="<?php echo $xiaoquming?> " ref="<?php echo './'.$tupian[2]?>" alt="<?php echo $xiaoquming?>" src="<?php echo './'.$tupian[2]?>" onerror="this.src='./images/avatar.gif'"></a></li>
              <li class="last"><a href="###"><img width="67" height="50" title="<?php echo $xiaoquming?> " ref="<?php echo './'.$tupian[3]?>" alt="<?php echo $xiaoquming?> " src="<?php echo './'.$tupian[3]?>" onerror="this.src='./images/avatar.gif'"></a></li>
            </ul>
            <p class="morepic"><a href="#roompic">共<?php echo count($tupian)?>张房源照片，查看全部&gt;&gt;</a></p>
          </div>
          <div class="propinfo">
            <ul class="prop_basic">
              <li class="list_spstyle"><?php if($type == 0){echo " 租金：<em>$jiage</em><span>元/月</span>";}else {echo " 价格：<em>$jiage</em><span>万元</span>";}?>  <?php if($type == 0){ ?><span style="color:#333333;font-weight:normal;font-size:12px;">(<?php echo $jiaoyifangshi  ?>)</span> <?php }?></li>
              <li class="list_spstyle">户型：<?php echo $huxing.'('.$chuzufangshi.')'; ?></li>
            </ul>
            <div class="telphone">
				<div class="number"><b><?php echo $dianhua; ?></b></div>
				<div class="tips">打电话时请告知是在房客网上看到的，谢谢。</div>
				<div class="sendSMS">免费发送到手机</div>
				<div class="applyPhone">申请获得该电话</div>
            </div>
            <ul class="prop_extend_info">
              <li class="long"> 小区：<a _soj="rentup" target="_blank" href="./xioaqu.php?id=<?php echo $xiaoquid ?>" id="text_for_school_1"><?php echo $xiaoquming ?></a>&nbsp;&nbsp;&nbsp;<!--(&nbsp;<a _soj="rentup" target="blank" title="安立花园小区的房源" href="#">房源</a>&nbsp;&nbsp;&nbsp;<a _soj="rentup" title="安立花园小区的相册" target="_blank" href="#">相册</a>&nbsp;&nbsp;&nbsp;<a _soj="rentup" title="安立花园周边的生活设施" target="_blank" href="#">生活配套</a>&nbsp;)--> </li>
              <li class="long"> 地址：<span title="<?php echo $xiaoqudizhi ?>" id="text_for_school_2"><?php echo $quyu.'  '.$xiaoqudizhi ?></span>&nbsp;&nbsp;&nbsp;(&nbsp;<a href="#commmap">地图</a>&nbsp;) </li>
              <li class="left">朝向：<?php echo $chaoxiang ?></li>
              <li>房龄：<?php echo $fangling ?>年</li>
              <li class="left">楼层：<?php echo $louceng ?></li>
              <li>装修：<?php echo $zhuangxiu ?></li>
              <li class="left o_bottom">面积：<?php echo $mianji ?></li>
              <li class="o_bottom">类型：<?php echo $leixing?></li>
            </ul>
          </div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <div id="navigation-propview">
      <!--<div class="propBrokerBox propBrokerBox3">
        <div class="propBrokerPhoto"> <a target="_blank" href="#"><img width="100" height="133" title="麦田房产 第五大道店A组 杜娟娟" src="http://pic1.ajkimg.com/display/anjuke/0109a828ed28f55bdc9eb0e0f3e8cacb/100x133x0x0/100x133.jpg"></a> </div>
        <div class="prop_new_line"> <a target="_blank" href="#"><?php echo $lianxiren ?></a> </div>
        <div class="mymedal">
          <ul class="medaltoshow">
            <li><a rel="nofollow" target="blank" href="#"><img src="http://pic1.ajkimg.com/display/anjuke/a36d7d3cdba23d960df4ee4bc1eacf4e/46x62q.jpg" title="一星资历勋章 该经纪人使用房客网时间在1年以内" alt="一星资历勋章 该经纪人使用房客网时间在1年以内"></a></li>
            <li><a rel="nofollow" target="blank" href="#"><img src="http://pic1.ajkimg.com/display/anjuke/0a15f1837799a87707cea8aefadd49ec/46x62q.jpg" title="诚信勋章 该经纪人的房源真实性良好" alt="诚信勋章 该经纪人的房源真实性良好"></a></li>
            <li><a rel="nofollow" target="blank" href="#"><img src="http://pic1.ajkimg.com/display/anjuke/b2f26b67d04b17ff7fcbe7e48de0c585/46x62q.jpg" title="优质勋章 该经纪人拥有丰富的高质量房源" alt="优质勋章 该经纪人拥有丰富的高质量房源"></a></li>
          </ul>
        </div>
        <div class="mycompany"> 就职于： <a target="_blank" href="/store.php?coid=4202">麦田房产 第五大道店A组</a> </div>
        <ul class="broker_bottom">
          <li id="mystore"> <a rel="nofollow" target="_blank" title="进入经纪人店铺" href="#"> 详细了解我 </a> </li>
          <li id="messageme"> <a rel="nofollow" target="_blank" title="向经纪人提问" href="#">给我发站内信</a> </li>
        </ul>
      </div>-->
    </div>
    <div class="clear"></div>-
  </div>
  <div id="extra-propview">
    <div class="prop_date">
      <div id="propID">房源编号：<?php echo $id ?></div>
      <span class="refresh_time"><?php echo $time ?>发布</span> </div>
    <ul class="sub_navigation">
      <li class="active">房源总览</li>
      <li><a href="#roompic">房源照片</a></li>
      <li><a href="#commmap">地 &nbsp; 图</a></li>
      <!--<li><a href="#commonintro">小区简介</a></li>-->
    </ul>
    <div class="propDescValue">
      <h2 class="pagetitle">
        <div> <span class="gotop"><a href="#">返回顶部</a></span> </div>
      </h2>
      <div style="display: none;" id="onlineLayer" class="online_layer">
        <div class="online_content">
          <div class="online_title">向经纪人提问</div>
          <textarea name="online_textarea" class="online_textarea notxt" id="onlineTxt">输入想了解的信息</textarea>
          <div style="display: none;" id="onlineMail">
            <div class="mail_content">
              <input type="text" value="" id="onlineMailTxt" class="mail_input" name="input">
            </div>
            <div class="tips">*回复发送至邮箱，邮箱保密</div>
          </div>
          <div class="submit"><a href="###" id="onlineAsk">咨询置业顾问</a></div>
        </div>
        <input type="hidden" id="userId" value="">
        <input type="hidden" id="intPropId" value="90506034">
        <input type="hidden" id="broId" value="351624">
        <input type="hidden" id="int_for_im" value="0">
      </div>
      <!--在线沟通提交成功弹层-->
      <div style="display:none;" id="onlineDialog" class="dialog">
        <div class="view_prop_popup_fav_new">
          <div class="my_member_marked_new">
            <div class="outerborder">
              <div class="border">
                <div class="close"><img border="0" src="http://pages.anjukestatic.com/img/reg/icon_close_9x10.gif" id="onlineClose"></div>
                <dl class="msg">
                  <dt id="onlineTip">成功咨询</dt>
                  <dd id="onlineTipTxt">注意查收您的邮箱，回复将发至邮箱</dd>
                  <dd><a id="onlineGoOn" class="goon" href="###">继续找房</a><a id="online_confirm" class="goon" href="###">确认</a></dd>
                </dl>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div style="-moz-user-select:none;" onselectstart="return false;" class="propDescValue_p"> <?php echo $jieshao ?>
        <div id="lazy_line" class="clear"></div>
        <div id="BrokerInfo"> <?php echo $jieshao2 ?> </div>

        <!-- 房源图片 -->
        <h2 id="roompic"> <span class="gotop"><a href="#">返回顶部</a></span> 房源照片 </h2>
        <a name="model_images"></a>
        <?php
        	for ($index = 0; $index < sizeof($tupian)-1; $index++) {

?>
        <div class="propPic"> <span class="piclink"><img src="<?php echo './'.$tupian[$index] ?>" alt="" title=""></span> <span class="picdesc"></span> </div>
	<?php

			}

        ?>

        </div>
      <div class="propCommIntroBox">
        <div id="propSimilarBox" class="propSimilarBox" style="display: none;">
          <h4 class="header">您是不是在找...</h4>
          <div id="propSimilarBoxContent" class="content"> </div>
        </div>

        <!-- 经纪人电话信息 -->
        <div class="propCommIntroBox contactBox">
          <div class="bottom_broker contactInfo">
            <div class="telenumb3">
              <div class="number"><b><?php echo $dianhua;?></b></div>
              <div class="tips">打电话时请告知是在房客网上看到的，谢谢。</div>
			  <div class="sendSMS">免费发送到手机</div>
			  <div class="applyPhone">申请获得该电话</div>
            </div>
            <!--<div class="blockname">经纪人：<a _soj="rentup" target="_blank" href="#"><?php echo $lianxiren ?></a>，进入店铺&gt;&gt;</a></div>-->
          </div>
        </div>
              <style type="text/css">
 #map{width:900px; height:300px;}
</style>
<script type="text/javascript" src="http://api.go2map.com/maps/js/api_v2.0.js"></script>

        <div name="commmap" id="commmap">
          <div id="mapcontent" class="propPropBox" style="display: block;">
            <h2 class="propMapBarTxt"> <span class="gotop"><a href="#">返回顶部</a></span> 地 图: </h2>
            <div id="bottom_map_container">
              <input type="hidden" value="#" id="mapUrl" name="mapUrl">
              <div class="propMapBarMap" id="propMapBarMap">

               <div id="map" style="float:left;"></div>

    <div id="result" style="margin-left:400px;font-size:12px;width:550px;">
    </div>

              </div>

          <div class="clear"></div>
        </div>
      </div>
    </div>
   <!--<div class="commintro_container">
      <h2 id="commonintro"> <span class="gotop"><a href="#">返回顶部</a></span> 安立花园 小区简介 </h2>
      <div class="commchartbox">
        <p class="commchart"> <a href="/community/trends/55869"><img width="340" height="180" border="0" alt="" src="http://static.anjuke.com/v2/chart/pricetrendml/W0QQtZ1QQcodeZ55869QQacZ060006420653QQwZ340QQhZ180QQdateZ20111112QQticksZ1QQnewZ1QQextZ.png"></a> </p>
      </div>
      <div id="" class="comminfo">
        <div class="commtrends"> <strong>11月均价：</strong><span style="font-weight:normal;"><span class="price"><span>29412</span></span> 元/平米， <strong><span>比</span>10月<span>上涨：</span></strong><span class="normalsize up" id="normalsize"><span>0.05%</span></span></span> <a target="_blank" _soj="prop_rent_5" href="#" class="price_detail">看历史房价</a> <a _soj="prop_rent_6" target="_blank" href="#" id="price_apf_id_1" class="today_price">看今日房价</a> <br>
          <a target="_blank" _soj="prop_rent" href="#">查看全部租房房源</a> </div>
        <div class="clear"></div>
        <ul class="commlinks">
          <li class="reputation"><a target="_blank" href="#">看看安立花园详细信息</a></li>
          <li class="friends"><a target="_blank" href="#">看看网友找房经验</a></li>
        </ul>
      </div>
      <div class="clear"></div>
      <!-- 房价走势图 -->
    <!--</div>-->
  </div>
  <!-- 小区相册 -->
 <!-- <div class="propCommIntroBox">
    <div class="o_commpicbox">
      <div class="commphotobox">
        <h5 class="commtitle"> <span class="morepic"><a _soj="rentup" target="_blank" href="#">查看所有照片&gt;&gt;</a></span> <strong>小区相册 </strong> </h5>
        <ul id="commphotolist" class="commphotolist">
          <li class="commphoto"><a target="_blank" href="/community/photos/b/details/55869_0?picsrc=http%3A%2F%2Fimages.anjukestatic.com%2Fattachments_comm%2F1%2Fa%2Fc%2F452d561dd564a_s.jpg"><img width="100" height="75" src="http://images.anjukestatic.com/attachments_comm/1/a/c/452d561dd564a_s.jpg" alt="向北看的景观，闹中取静的位置！"></a></li>
          <li class="commphoto"><a target="_blank" href="/community/photos/b/details/55869_0?picsrc=http%3A%2F%2Fimages1.anjukestatic.com%2Fcommunity%2F20081010%2F1%2F15%2F42%2F88%2F1154288%2F100x75.jpg"><img width="100" height="75" src="http://images1.anjukestatic.com/community/20081010/1/15/42/88/1154288/100x75.jpg" alt="78"></a></li>
          <li class="commphoto"><a target="_blank" href="/community/photos/b/details/55869_0?picsrc=http%3A%2F%2Fimages8.anjukestatic.com%2Fcommunity%2F20091103%2F31%2F59%2F83%2F72%2F31598372%2F100x75.jpg"><img width="100" height="75" src="http://images8.anjukestatic.com/community/20091103/31/59/83/72/31598372/100x75.jpg" alt="小区内部花园"></a></li>
          <li class="commphoto"><a target="_blank" href="/community/photos/b/details/55869_0?picsrc=http%3A%2F%2Fpic1.ajkimg.com%2Fdisplay%2F2ad333aea6c93a2799a9d331897a1c32%2F100x75.jpg"><img width="100" height="75" src="http://pic1.ajkimg.com/display/2ad333aea6c93a2799a9d331897a1c32/100x75.jpg" alt=""></a></li>
          <li class="commphoto"><a target="_blank" href="/community/photos/b/details/55869_0?picsrc=http%3A%2F%2Fpic1.ajkimg.com%2Fdisplay%2F6d6452cb5f25f6c4fe8979099fa76382%2F100x75.jpg"><img width="100" height="75" src="http://pic1.ajkimg.com/display/6d6452cb5f25f6c4fe8979099fa76382/100x75.jpg" alt=""></a></li>
          <li class="commphoto"><a target="_blank" href="/community/photos/b/details/55869_0?picsrc=http%3A%2F%2Fpic1.ajkimg.com%2Fdisplay%2F6d6452cb5f25f6c4fe8979099fa76382%2F100x75.jpg"><img width="100" height="75" src="http://pic1.ajkimg.com/display/6d6452cb5f25f6c4fe8979099fa76382/100x75.jpg" alt=""></a></li>
          <li class="commphoto"><a target="_blank" href="/community/photos/b/details/55869_0?picsrc=http%3A%2F%2Fpic1.ajkimg.com%2Fdisplay%2F2ad333aea6c93a2799a9d331897a1c32%2F100x75.jpg"><img width="100" height="75" src="http://pic1.ajkimg.com/display/2ad333aea6c93a2799a9d331897a1c32/100x75.jpg" alt=""></a></li>
        </ul>
      </div>
    </div>
  </div>-->

  <!-- 经纪人电话信息 -->
  <div class="propCommIntroBox contactBox">
    <div class="bottom_broker contactInfo">
      <div class="telenumb3">
        <div class="number"><b><?php echo $dianhua;?></b></div>
        <div class="tips">打电话时请告知是在房客网上看到的，谢谢。</div>
		<div class="sendSMS">免费发送到手机</div>
		<div class="applyPhone">申请获得该电话</div>
      </div>
    <!-- <div class="blockname">经纪人：<a _soj="rentup" target="_blank" href="#">杜娟娟，进入店铺&gt;&gt;</a></div>-->
    </div>
  </div>

  <!-- 房源访问记录 -->
 <!-- <div id="HistoryContent" style="display: block;">
    <div id="property_history">
      <h4>您在房客网看过的房子</h4>
      <ul>
        <li class="propUnit">
          <dl>
            <dt><a onclick="return false;" href="#"><img width="62" height="47" src="http://pic1.ajkimg.com/display/cf6f69c25251c269e3eb06048ac6ac38/100x75.jpg"></a></dt>
            <dd class="title"><a title="西坝河畔光熙城铁第一家舒适2居 风起帘动 清风绿意穿堂而过" onclick="return false;" href="#">西坝河畔光熙城铁第一家</a></dd>
            <dd><a title="光熙家园" class="comm" onclick="return false;" href="#">光熙家园</a></dd>
            <dd><a class="info" onclick="return false;" href="#">2室2厅 整租</a>&nbsp;<span class="price">8000元/月</span></dd>
          </dl>
        </li>
        <li class="propUnit">
          <dl>
            <dt><a onclick="return false;" href="#"><img width="62" height="47" src="http://pic1.ajkimg.com/display/37a8f8f69feb6f41f241d2d1c5977303/100x75.jpg"></a></dt>
            <dd class="title"><a title="芍药居北里公寓式住宅豪华装修大两居室，随时看房，拎包入住。" onclick="return false;" href="#">芍药居北里公寓式住宅豪</a></dd>
            <dd><a title="芍药居北里" class="comm" onclick="return false;" href="#">芍药居北里</a></dd>
            <dd><a class="info" onclick="return false;" href="#">2室1厅 整租</a>&nbsp;<span class="price">4500元/月</span></dd>
          </dl>
        </li>
        <li class="propUnit">
          <dl>
            <dt><a onclick="return false;" href=""><img width="62" height="47" src="http://pic1.ajkimg.com/display/457a8f15ce63564e35db511739c133f1/100x75.jpg"></a></dt>
            <dd class="title"><a title="红莲大厦旁 康宁居成熟社区精装全齐三居室出租" onclick="return false;" href="">红莲大厦旁 康宁居成熟社</a></dd>
            <dd><a title="康宁居" class="comm" onclick="return false;" href="">康宁居</a></dd>
            <dd><a class="info" onclick="return false;" href="">3室2厅 整租</a>&nbsp;<span class="price">4500元/月</span></dd>
          </dl>
        </li>
      </ul>
    </div>
    <div id="property_recommend">
      <h4>为您推荐</h4>
      <ul>
        <li class="propUnit">
          <dl>
            <dt><a onclick="return false;" href="/prop/rent/90208557?from=prophistory_rec"><img width="100" height="75" src="http://pic1.ajkimg.com/display/44ce4df6e2d257dae1bef8cedd90a1bd/100x75.jpg"></a></dt>
            <dd class="title"><a title="芍药北里高档商品房，南向采光好，拎包入住！！" onclick="return false;" href="/prop/rent/90208557?from=prophistory_rec">芍药北里高档商品房，南向</a></dd>
            <dd class="price"><strong>4500</strong>元/月</dd>
            <dd><a class="info" onclick="return false;" href="/prop/rent/90208557?from=prophistory_rec">2室1厅 整租 精装修</a></dd>
            <dd><a title="世嘉座" class="comm" onclick="return false;" href="/prop/rent/90208557?from=prophistory_rec">世嘉座</a></dd>
          </dl>
        </li>
        <li class="propUnit">
          <dl>
            <dt><a onclick="return false;" href="/prop/rent/90254511?from=prophistory_rec"><img width="100" height="75" src="http://pic1.ajkimg.com/display/a39bedf2437fbc8089986cdc475a57ef/100x75.jpg"></a></dt>
            <dd class="title"><a title="黄金地断超级抢手2室出租经贸大学东门地铁沿线" onclick="return false;" href="/prop/rent/90254511?from=prophistory_rec">黄金地断超级抢手2室出租</a></dd>
            <dd class="price"><strong>4000</strong>元/月</dd>
            <dd><a class="info" onclick="return false;" href="/prop/rent/90254511?from=prophistory_rec">2室1厅 整租 普通装修</a></dd>
            <dd><a title="芍药居小区" class="comm" onclick="return false;" href="/prop/rent/90254511?from=prophistory_rec">芍药居小区</a></dd>
          </dl>
        </li>
        <li class="propUnit">
          <dl>
            <dt><a onclick="return false;" href="/prop/rent/90565493?from=prophistory_rec"><img width="100" height="75" src="http://pic1.ajkimg.com/display/e2ee2705db86db49286759e6ee08487f/100x75.jpg"></a></dt>
            <dd class="title"><a title="格调小区，70平米两居4000元一月！" onclick="return false;" href="/prop/rent/90565493?from=prophistory_rec">格调小区，70平米两居4000元</a></dd>
            <dd class="price"><strong>4000</strong>元/月</dd>
            <dd><a class="info" onclick="return false;" href="/prop/rent/90565493?from=prophistory_rec">2室1厅 整租 精装修</a></dd>
            <dd><a title="格调小区" class="comm" onclick="return false;" href="/prop/rent/90565493?from=prophistory_rec">格调小区</a></dd>
          </dl>
        </li>
        <li class="propUnit">
          <dl>
            <dt><a onclick="return false;" href="/prop/rent/90587582?from=prophistory_rec"><img width="100" height="75" src="http://pic1.ajkimg.com/display/ac31918bef01196f390d488853d59953/100x75.jpg"></a></dt>
            <dd class="title"><a title="瑞莲家园大三居4000 家电全齐拎包入住" onclick="return false;" href="/prop/rent/90587582?from=prophistory_rec">瑞莲家园大三居4000 家电全</a></dd>
            <dd class="price"><strong>4000</strong>元/月</dd>
            <dd><a class="info" onclick="return false;" href="/prop/rent/90587582?from=prophistory_rec">3室1厅 整租 精装修</a></dd>
            <dd><a title="瑞莲家园" class="comm" onclick="return false;" href="/prop/rent/90587582?from=prophistory_rec">瑞莲家园</a></dd>
          </dl>
        </li>
      </ul>
    </div>
    <div class="clear"></div>
  </div>-->

  <!-- 广告插入 -->
  <div style="margin-top: 20px; padding: 5px; border: 1px solid rgb(208, 206, 193);width:730px;display:none;" id="adanjuke_zoneid_propview_001"> </div>
  <div style="color:#999;margin:25px 0 0px 0px;line-height:20px;text-align:center"> 友情提醒：使用本网站的所有用户须接受并遵守<a style="color:#999" target="_blank" href="/user-agreement.html">用户协议</a>和<a style="color:#999;margin-right:40px" href="/liability.html">免责声明</a> 房源信息系房客网数据库内容，未经许可不得商业复制和利用 </div>
</div>
<div style="display:none" class="dialog" id="apf_id_10">
  <div class="view_prop_popup_fav" id="popup_apf_id_10">
    <div class="my_member_marked_mm" id="msgbox_apf_id_10">
      <div class="border">
        <form method="post" action="" name="loginForm">
          <input type="hidden" value="1" name="loginpost">
          <input type="hidden" name="formhash">
          <input type="hidden" name="systemtime">
          <input type="hidden" value="1" name="remember">
          <input type="hidden" value="aHR0cDovL2FuanVrZS5jb20=" name="history">
          <div class="login">
            <div class="title"><span><strong>请先登录</strong></span><span class="close"><img border="0" src="http://pages.anjukestatic.com/img/reg/icon.close_8x9.gif"></span></div>
            <div class="line"></div>
            <div class="msg">
              <div id="prompt_message_apf_id_10" class="red"></div>
              <div>
                <input type="text" onfocus="javascript:if(this.value=='用户名或邮箱地址')this.value='';this.className='my_login_logininput';" value="sj853" id="username_apf_id_10" name="username_apf_id_10" class="my_login_logininput">
                <span id="check_username_apf_id_10"></span> </div>
              <div style="position:relative;">
                <label class="password_tip" id="password_tip_apf_id_10">请输入密码</label>
                <input type="password" style="padding-left:2px;" id="password_apf_id_10" name="password_apf_id_10" title="密码" class="inputpwd">
                <span id="check_pass_apf_id_10"><a target="_blank" href="/pass?type=forget">忘记密码？</a></span> </div>
              <div class="button">
                <input type="button" value="登 录" class="login_submit" id="submit_apf_id_10">
                &nbsp; &nbsp; <a target="_blank" href="zhuce.php">还没有房客网帐号?快速注册&gt;&gt;</a></div>
              <div class="clear"></div>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
</div>
<script>


var marker = null;

var myLatLng = new sogou.maps.Point(12957062,4827187);
var myOptions = {
  zoom: 14,
  center: myLatLng
};
var map = new sogou.maps.Map(document.getElementById("map"), myOptions);
function callback(a){
     if (marker) {
        marker.setMap(null);
     }
     if(a.status='ok'){
         var data = a.data;
         for (var i = 0; i < data.length; i++) {
            var geometry=a.data[0];
            marker = new sogou.maps.Marker({
                 map:map,
                 title:geometry.address,
                 label:{
                    title:geometry.address,
                    visible:true
                 },
                 position:geometry.location,
                 visible:true
             });

             map.setCenter(marker.getPosition());
         }
     }

}
var request={address:{addr:'<?php echo $xiaoqudizhi.$xiaoquming?>',city:'北京'}}
var geo=new sogou.maps.Geocoder();
geo.geocode(request,callback);
</script>

<?php }?>